

import models.MBao;
import models.MUser;
import play.jobs.Job;
import play.jobs.OnApplicationStart;
import play.test.Fixtures;

@OnApplicationStart
public class Bootstrap extends Job {
	
	public void doJob(){
		if(MUser.count() == 0){
			Fixtures.load("testUser.yml");
		}
		
		if(MBao.count() == 0){
			Fixtures.load("testBao.yml");
		}
	}
}
